#!/usr/bin/env bash

APP=helm

[ -d /opt/$APP ] || mkdir /opt/$APP
cd /opt/$APP

echo '安装helm'
wget https://repo.huaweicloud.com/helm/v3.14.0/helm-v3.14.0-linux-amd64.tar.gz
tar -zxvf helm*.tar.gz
mv linux-amd64/helm  /usr/local/bin/
helm version

echo '配置国内repo'
helm repo add aliyun https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
helm repo list
helm repo update

